package Cani;
import java.util.Stack;


public class incerc {
	
	public static void main(String args[]){
		Stack<Nod>list=new Stack<Nod>();
		Nod n=new Nod(6,7);
		list.add(n);
		list.add(new Nod(6,9));
		list.add(new Nod(7,9));
		for(int i=0;i<list.size();i++)
			System.out.println(list.elementAt(i));
		Nod nda=new Nod(list.peek());
		System.out.println("daad"+nda);
		list.pop();
		list.push(new Nod(1,3));
		System.out.println("---------------");
		for(int i=0;i<list.size();i++)
			System.out.println(list.elementAt(i));

	}

}
